<div id="adv-right">
    <? $list_advs = getArray('xteam_content','parent_id=31 AND status=1');
    if($list_advs){
        foreach($list_advs as $list_adv){
            if(getFileExtention($list_adv["image_large"])=='.swf'){?>
    <object id="banner" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="156" height="auto" title="Flash intro">
        <param name="movie" value="<?=$curHost?><?=$list_adv["image"]?>" />
        <param name="quality" value="high" />
        <param value="transparent" name="wmode">
        <embed src="<?=$curHost?><?=$list_adv["image_large"]?>" wmode="opaque" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="156" height="auto"></embed>
    </object>
            <? }else{ ?>
    <p>
        <a target="_blank" href="http://<?=$list_adv['detail']?>" rel="nofollow">
            <img src="<?=$curHost.$list_adv['image_thumbs'];?>" alt="<?=$list_adv['name']?>" />
        </a>
    </p>
            <?
            }
        }
    }?>
</div>